﻿using System;


namespace epicenter2010.Domain.Specification
{
	/// <summary>
	/// bstack @ 06/06/2010
	/// Order is candidate for order item addition specification
	/// </summary>
	public class OrderIsCandidateForOrderItemAddition
	{
		/// <summary>
		/// Is satisfied by
		/// </summary>
		/// <param name="subject"></param>
		/// <returns></returns>
		public static bool IsSatisfiedBy(epicenter2010.Domain.Entity.Order subject)
		{
			epicenter2010.Common.DBCChecker.RequireArgumentNotNull("subject", subject);

			return subject.Status == epicenter2010.Domain.Entity.OrderStatus.Initiated;
		}
	}
}
